import { reactive } from 'vue'
import type { FormRules } from 'element-plus'
export const rules = reactive<FormRules>({
  name: [
    { required: true, message: '请输入角色名称', trigger: 'blur' },
    {
      min: 2,
      max: 16,
      message: '角色名称长度应在2到16个字符之间',
      trigger: 'blur'
    }
  ],
  code: [
    { required: true, message: '请输入角色编码', trigger: 'blur' },
    {
      min: 2,
      max: 24,
      message: '角色编码长度应在2到24个字符之间',
      trigger: 'blur'
    }
  ]
})
